<template>
  <div>
    <div class="topList">
      <router-link to="/appmain" class="topBtn">
        <i class="iconfont arrow-left">&#xe641;</i>
        <span class="allExam">课堂互动</span>
      </router-link>
      <div class="examResult">
        <span class="examNum">{{tempStd}}&nbsp;/&nbsp;{{tempEnd}}</span>
      </div>
      <!-- <div class="examTime">考试用时：0分34秒</div> -->
    </div>
    <div class="examend">
      <p class="examTitle">{{Cos_Name}}</p>
      <div class="examDesc">
        <p>本次互动共{{tempEnd}}题，做对{{tempStd}}题</p>
      </div>
      <div class="notpass">
        <p class="examStatu" >课程互动已完成</p>
        <el-button type="primary" @click="gotoindex">返回首页</el-button>
      </div>
    </div>
    <div class="bottombar">
      <router-link to="/appmain">
        <img src="../../assets/app/home.png" alt />
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
 data(){
   return{
     tempStd: this.$route.params.tempStd, //对的题
     tempEnd: this.$route.params.tempEnd, //总共题数
     Cos_Name: this.$route.params.name, //课程名称
   }
 },
 methods:{
   gotoindex(){
     this.$router.push({ name: "appmain"}); 
   }
 }
};
</script>

<style scoped>
@font-face {
  font-family: "iconfont"; /* project id 1514769 */
  src: url("//at.alicdn.com/t/font_1514769_4qk754zzrki.eot");
  src: url("//at.alicdn.com/t/font_1514769_4qk754zzrki.eot?#iefix")
      format("embedded-opentype"),
    url("//at.alicdn.com/t/font_1514769_4qk754zzrki.woff2") format("woff2"),
    url("//at.alicdn.com/t/font_1514769_4qk754zzrki.woff") format("woff"),
    url("//at.alicdn.com/t/font_1514769_4qk754zzrki.ttf") format("truetype"),
    url("//at.alicdn.com/t/font_1514769_4qk754zzrki.svg#iconfont") format("svg");
}
.notpass {
  text-align: center;
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 25px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  vertical-align: sub;
}
.topList {
  height: 13rem;
  width: 100%;
  line-height: 3rem;
  /* border:1px solid red; */
  text-align: center;
  font-size: 18px;
  background-image: linear-gradient(135deg, #0396ff 10%, #abdcff 100%);
}
.topBtn {
  text-decoration: none;
  color: white;
  display: inline-block;
  width: 100%;
}
.allExam {
  margin-left: -2rem;
}
.arrow-left {
  float: left;
}
p {
  margin: 0;
  padding: 0;
}
.examResult {
  height: 7rem;
  line-height: 10rem;
  border-top: 1px solid;
  color: white;
  font-size: 20px;
}
.examNum {
  font-size: 60px;
}
.examTime {
  color: white;
  font-size: 18px;
}
.examTitle {
  text-align: center;
  font-size: 22px;
  margin: 25px 0;
  font-weight: 600;
  color: #1aa0ff;
}

.examDesc {
  margin: 0 auto;
  width: 90%;
  /* border: 1px solid red; */
  font-size: 13px;
  text-align: center;
  color: #a0a0a0;
}
.examStatu {
  color: limegreen;
  text-align: center;
  margin: 25px 0;
  font-size: 20px;
}

.bottombar {
  position: fixed;
  z-index: 900;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  border: 1px solid white;
  height: 50px;
  text-align: center;
  background: rgb(36, 164, 255);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.1) inset;
}
.bottombar img {
  background: white;
  padding: 10px;
  border-radius: 50%;
  position: relative;
  /* top: -20px; */
  text-shadow: 0 1px rgba(0, 0, 0, 0.3);
  /* border: 5px solid gray; */
}
</style>
